package com.springcloud.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "wms_task")
public class TaskModel {
    @TableField(exist = false)
    private String key;
    private String taskNo;
    private String taskModel;
    private String operateType;
    private String binnoFrom;
    private String binnoTo;
    private int level;//第几层
    private int taskLevel;//任务优先级
    private String taskTime;
    private String palletno;
    private String taskState;//任务状态
    private String exeState;//1，0
    private String  stateInfo;
    @TableField(exist = false)
    private String id;
    @TableField(exist = false)
    private String status;

    /**
     * 判断参数是否正确
     *
     */
    public boolean valid(){
        return taskNo != null || taskModel != null || operateType != null || binnoFrom != null || binnoTo != null || taskState != null;
    }

}
